﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

/// <summary>
///Product 的摘要说明
/// </summary>
public class Product
{
    private int productId;
    private string name_cn;
    private string name_en;
    private string desc_cn;
    private string desc_en;
    private string image;
    private DateTime date;
    private bool recommended;
    private bool dimNew;
    private int category;
	public Product()
	{

	}
    public Product(int pid,string name_cn,string name_en,string desc_cn,string desc_en,string image,int recommended,int dimNew,int category)
    {
        this.ProductId = pid;
        this.Name_cn = name_cn;
        this.Name_en = name_en;
        this.Desc_cn = desc_cn;
        this.Desc_en = desc_en;
        this.Image = image;
        this.Recommended = recommended == 1 ? true : false ;
        this.DimNew = dimNew ==1 ?true:false;
        this.Category = category;
    }

    public int ProductId
    {
        get
        {
            return productId;
        }
        set
        {
            this.productId = value;
        }
    }
    public string Name_cn
    {
        get
        {
            return this.name_cn;
        }
        set
        {
            this.name_cn = value;
        }
    }

    public string Name_en
    {
        get
        {
            return this.name_en;
        }
        set
        {
            this.name_en = value;
        }
    }

    public string Desc_cn
    {
        get
        {
            return this.desc_cn;
        }
        set
        {
            this.desc_cn = value;
        }
    }

    public string Desc_en
    {
        get
        {
            return this.desc_en;
        }
        set
        {
            this.desc_en = value;
        }
    }

    public bool Recommended
    {
        get
        {
            return this.recommended;
        }
        set
        {
            this.recommended = value;
        }
    }

    public bool DimNew
    {
        get
        {
            return this.dimNew;
        }
        set
        {
            this.dimNew = value;
        }
    }

    public int Category
    {
        get
        {
            return this.category;
        }
        set
        {
            this.category = value;
        }
    }

    public string Image
    {
        get
        {
            return this.image;
        }
        set
        {
            this.image = value;
        }
    }
    public DateTime Date
    {
        get
        {
            return this.date;
        }
        set
        {
            this.date = value;
        }
    }
}
